package gurps

import java.util.Date
import javax.jdo.annotations.IdGeneratorStrategy
import javax.jdo.annotations.IdentityType
import javax.jdo.annotations.PersistenceCapable
import javax.jdo.annotations.Persistent
import javax.jdo.annotations.PrimaryKey
import com.google.appengine.api.users.User

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Character 
{
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    Long id

    @Persistent
    User author

    @Persistent
    String name

	@Persistent
	String description

	@Persistent
	int strength
    
	@Persistent
	int dexterity

	@Persistent
	int intelligence

	@Persistent
	int health

	@Persistent
    Date date

    Character(User author, String name, String description, Date date, int st, int dx, int iq, int ht) 
	{
        this.author = author
        this.name = name
		this.description = description
        this.date = date
		this.strength = st
		this.dexterity = dx
		this.intelligence = iq
		this.health = ht
    }
}